import request from '@/utils/request';

export let getData = async () => {
    return request.post('/api/1.0/company/statistics/reportForm/day',
        {
            token: localStorage.getItem('token'),
        })
}

export let getDataCount = async ()=>{
    return request.post('/api/1.0/company/statistics/reportForm/ordernum/select',{
        token:localStorage.getItem('token')
    })
}
export let getDataBar = async ()=>{
    return request.post('/api/1.0/company/statistics/reportForm//orderinfo/tendency',{
        token:localStorage.getItem('token')
    })
}

export let getDataTops= async ()=>{
    return request.post('/api/1.0/company/statistics/reportForm/product/top5',{
        token:localStorage.getItem('token')
    })
}

export let getDataChain = async ()=>{
    return request.post('/api/1.0/company/statistics/reportForm/exportorder/area/top5',{
        token:localStorage.getItem('token')
    })
}


